package com.qiche.dto;

import com.google.gson.Gson;

import javax.validation.constraints.Pattern;
import java.util.Date;

public class PiccCard {
    private Long id;

    private String cardCode;

    private String cardType;

    private Date createDate;

    private String status;

    private Date receivingDate;

    private Integer usePeriod;

    private Double cardAmount;

    private Long writeoffShop;

    private Long activityId;

    private Long memberId;

    private Double getAmount;

    private Long tacticsId;

    private String cardTitle;

    private String merchantName;

    private String merchantIntroduction;

    private String available;

    private Date writeoffDate;

    private Date verifyBeginDate;
    
    private Date verifyEndDate;

    @Pattern(regexp="[0-9]" ,message="库存只能为数字！")
    private Integer cardQuantity;

    @Pattern(regexp="[0-9]" ,message="最大金额只能为数字！")
    private Integer max;

    @Pattern(regexp="[0-9]" ,message="最小金额只能为数字！")
    private Integer min;

    private Integer multiple;

    
    private String ownerPhone;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCardCode() {
        return cardCode;
    }

    public void setCardCode(String cardCode) {
        this.cardCode = cardCode == null ? null : cardCode.trim();
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType == null ? null : cardType.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getReceivingDate() {
        return receivingDate;
    }

    public void setReceivingDate(Date receivingDate) {
        this.receivingDate = receivingDate;
    }

    public Integer getUsePeriod() {
        return usePeriod;
    }

    public void setUsePeriod(Integer usePeriod) {
        this.usePeriod = usePeriod;
    }

    public Double getCardAmount() {
        return cardAmount;
    }

    public void setCardAmount(Double cardAmount) {
        this.cardAmount = cardAmount;
    }

    public Long getWriteoffShop() {
        return writeoffShop;
    }

    public void setWriteoffShop(Long writeoffShop) {
        this.writeoffShop = writeoffShop;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Double getGetAmount() {
        return getAmount;
    }

    public void setGetAmount(Double getAmount) {
        this.getAmount = getAmount;
    }

    public Long getTacticsId() {
        return tacticsId;
    }

    public void setTacticsId(Long tacticsId) {
        this.tacticsId = tacticsId;
    }

    public String getCardTitle() {
        return cardTitle;
    }

    public void setCardTitle(String cardTitle) {
        this.cardTitle = cardTitle == null ? null : cardTitle.trim();
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName == null ? null : merchantName.trim();
    }

    public String getMerchantIntroduction() {
        return merchantIntroduction;
    }

    public void setMerchantIntroduction(String merchantIntroduction) {
        this.merchantIntroduction = merchantIntroduction == null ? null : merchantIntroduction.trim();
    }

    public String getAvailable() {
        return available;
    }

    public void setAvailable(String available) {
        this.available = available == null ? null : available.trim();
    }

    public Date getWriteoffDate() {
        return writeoffDate;
    }

    public void setWriteoffDate(Date writeoffDate) {
        this.writeoffDate = writeoffDate;
    }


    public Integer getCardQuantity() {
        return cardQuantity;
    }

    public void setCardQuantity(Integer cardQuantity) {
        this.cardQuantity = cardQuantity;
    }

    public Integer getMax() {
        return max;
    }

    public void setMax(Integer max) {
        this.max = max;
    }

    public Integer getMin() {
        return min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }

   

    public Integer getMultiple() {
        return multiple;
    }

    public void setMultiple(Integer multiple) {
        this.multiple = multiple;
    }

  
    

    public Date getVerifyBeginDate() {
		return verifyBeginDate;
	}

	public void setVerifyBeginDate(Date verifyBeginDate) {
		this.verifyBeginDate = verifyBeginDate;
	}

	public Date getVerifyEndDate() {
		return verifyEndDate;
	}

	public void setVerifyEndDate(Date verifyEndDate) {
		this.verifyEndDate = verifyEndDate;
	}

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }

	public String getOwnerPhone() {
		return ownerPhone;
	}

	public void setOwnerPhone(String ownerPhone) {
		this.ownerPhone = ownerPhone;
	}
    
    
}